<div class="box">
    
  <div class="box-header">

    <div class="row">
        <!--<div class="col-sm-5">-->
            <!--<ob_link><a class="btn" href="{:url('userAdd')}"><i class="fa fa-plus"></i> 新 增</a></ob_link>-->
            <!--&nbsp;-->
            <!--<ob_link><a class="btn export" url="{:url('exportUserList')}"><i class="fa fa-download"></i> 导 出</a></ob_link>-->
        <!--</div>-->
        
        <div class="col-sm-7">
            <div class="box-tools search-form pull-right">
                <div class="input-group input-group-sm">
                    <input type="text" name="search_data" style="width: 200px;" class="form-control pull-right" value="{:input('search_data')}" placeholder="支持昵称|用户名|手机">
                    <div class="input-group-btn">
                      <button type="button" id="search"  url="{:url('cuserlist')}" class="btn btn-info btn-flat"><i class="fa fa-search"></i></button>
                    </div>
                </div>
           </div>
        </div>
    </div>
    
  </div>
    
    
  <div class="box-body table-responsive">
    <table  class="table table-bordered table-hover">
      <thead>
      <tr>
		  <th>LOGO</th>
          <th>用户名</th>
          <th>套餐订单</th>
          <th>发布职位</th>
          <th>沟通人数</th>
          <th>收藏人数</th>
		  <th>面试人数</th>
          <th>录取人数</th>
      </tr>
      </thead>
      
      {notempty name='list'}
        <tbody>
            {volist name='list' id='vo'}
                <tr>
				  <td><a Onclick="imgck('{$vo.headimg|default=''}')" target="_blank" data-lightbox="gallery" data-title="{$vo.headimg| default='/upload/headimg.png'}" > <img src='{$vo.headimg|default="/upload/headimg.png"}'  width="50" height="50" style="border-radius:50%"/></a><br/>{$vo.id}</td>
				  <td>{$vo.username}<br/><span style="color:green">{$vo.name}</span>
					  {if $vo.is_service == 1}<br/><span style="color:red">（服务商）</span>{/if}
				  </td>
				  <td><a href="{:url('moneyapp/seriesOrder', array('user_id' => $vo['id']))}" >{$vo.tc}</a></td>
                  <td><a href="{:url('position/workList', array('user_id' => $vo['id']))}" >{$vo.num}</a></td>
                  <td><a href="{:url('user/user_list', array('user_id' => $vo['id'],'type'=>1))}" >{$vo.chat}</a></td>
					<td><a href="{:url('user/user_list', array('user_id' => $vo['id'],'type'=>2))}" >{$vo.sc}</a></td>
					<td><a href="{:url('user/user_list', array('user_id' => $vo['id'],'type'=>3))}" >{$vo.ms}</a></td>
					<td><a href="{:url('user/user_list', array('user_id' => $vo['id'],'type'=>4))}" >{$vo.lq}</a></td>
                </tr>
            {/volist}
        </tbody>
        {else/}
        <tbody><tr class="odd"><td colspan="8" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
      {/notempty}
    </table>
  </div>
<div class="box-footer">
	<!--<ob_link><a class="btn batch_btn confirm ajax-post" value="{$Think.DATA_NORMAL}"  href="{:url('setStatus')}"><i class="fa fa-check-circle"></i> 启 用</a></ob_link>-->
	<!--<ob_link><a class="btn batch_btn confirm ajax-post" value="{$Think.DATA_DISABLE}" href="{:url('setStatus')}"><i class="fa fa-times-circle"></i> 禁 用</a></ob_link>-->
	<a class="btn" onclick="javascript:history.back(-1);return false;"><i class="fa fa-history"></i> 返 回</a>
</div>
  <div class="box-footer clearfix text-center">
      {$list->render()}
  </div>

</div>

<script>
    //导出功能
    $(".export").click(function(){
        window.location.href = searchFormUrl($(".export"));
    });
	function bfqx(id){
		layer.confirm('请您选择拨付类型！', {
		  btn: ['简历查看','发布职位'] //按钮
		}, function(){
			layer.prompt({title: '输入拨付次数', formType: 4},function(val, index){
				if(isNaN(val)){
					layer.msg("请输入正确的数字");
					return false;
				}
			    $.post("{:url('editNum')}",{resumeNum:val,user_id:id},function(data){
					if(data.code == 0){
						layer.msg(data.msg);
						location.reload();
					}else{
						layer.msg(data.msg);
					}
				},'json');
			});
		}, function(){
			layer.prompt({title: '输入拨付次数', formType: 4},function(vals, index){
				if(isNaN(vals)){
					layer.msg("请输入正确的数字");
					return false;
				}
			    $.post("{:url('editNum')}",{workNum:vals,user_id:id},function(data){
					if(data.code == 0){
						layer.msg(data.msg);
						location.reload();
					}else{
						layer.msg(data.msg);
					}
				},'json');
			});
	    });
	}
	//拨付
	function bfMoney(id){
		layer.prompt({title: '输入拨付金额', formType: 4},function(val, index){
			if(isNaN(val)){
				layer.msg("请输入正确的数字");
				return false;
			}
			$.post("{:url('editMoney')}",{money:val,user_id:id},function(data){
				if(data.code == 0){
					layer.msg(data.msg);
					location.reload();
				}else{
					layer.msg(data.msg);
				}
			},'json');
		});
	}
	//重置密码
	function resetPassword(id){
		password=<?php echo config('reset_password');?>;
		layer.confirm('重置密码为：<span style="color:red">'+password+'</span>，确定重置密码？', {
		  time: 0 //不自动关闭
		  ,btn: ['确定', '取消']
		  ,yes: function(index){
			layer.close(index);
			$.post("{:url('resetPassword')}",{id:id,password:password},function(data){
				if(data.code == 0){
					layer.msg(data.msg);
					location.reload();
				}else{
					layer.msg(data.msg);
				}
			},'json');
		  }
		});
	}
</script>